<?php
namespace home;
use ctrl\BaseCtrl;
use dao\BaseDao;

class IndexCtrl extends BaseCtrl {
    function index() {
//        $db = new BaseDao();
//        $list = $db->select('test','*');
//        dump($list);
        if (isGet()) {
            echo "get";
        }

        if (isPost()) {
            $data = postData();
            dump($data);
        }
    }
}
